var mainPage = {
		
		initialize: function(){
			restaurantsOffersZoomer.createZoomer(null, "middle_top");
			this.loadWeekOutstandigData();
			this.loadNextOutstandigData();
			login.createLoginArea();
			login.createDirectAccessLogin();
			$("#calendar").datepicker();
			//calendar.renderExtjs("calendar");
		},
		
		loadWeekOutstandigData: function(){
			var oThis = this;
			var startDate = new Date();
			var endDate = new Date();
			endDate.setDate(endDate.getDate() + 15);
			var startMonth = startDate.getMonth() + 1;
			var endMonth = endDate.getMonth() + 1;
			$.get(
			    "GetEvents",
			    {
			    	startDate : startDate.getFullYear()+"-"+startMonth +"-"+startDate.getDate(),
			    	endDate: endDate.getFullYear()+"-"+endMonth +"-"+endDate.getDate(),
			    	request: "STARTENDDATE"
			    },
			    function(data) {
			    	slider.createOustandingSlider(data, "top_events");
			    }
			);
		},
		
		loadNextOutstandigData: function(){
			var oThis = this;
			var startDate = new Date();
			var startMonth = startDate.getMonth() + 1;
			$.get(
			    "GetEvents",
			    {
			    	startDate : startDate.getFullYear()+"-"+startMonth +"-"+startDate.getDate(),
			    	request: "GETNEXTEVENTS"
			    },
			    function(data) {
			    	outstandingZoomer.createOustandingZoomer(data, "left");
			    }
			);
		}
		
};